import { createApp } from 'vue'
import { createPinia } from 'pinia'
import './style.css'
import App from './App.vue'
import 'ant-design-vue/dist/reset.css';
import * as Icons from '@ant-design/icons-vue';
import router from './router';
import 'nprogress/nprogress.css'

const pinia = createPinia();
const app = createApp(App)
Object.keys(Icons).forEach((key) => {
    const icon = (Icons as Record<string, any>)[key];
    app.component(key, icon);
});

app.use(pinia).use(router).mount('#app')
